import 'package:flutter/material.dart';

import 'package:get/get.dart';

class UnknownView extends StatelessWidget {
  const UnknownView({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Stack(
        fit: StackFit.expand,
        children: [
          Image.asset(
            'assets/images/404.png',
            fit: BoxFit.cover,
          ),
          Positioned(
            bottom: MediaQuery.of(context).size.height * 0.15,
            left: MediaQuery.of(context).size.width * 0.3,
            right: MediaQuery.of(context).size.width * 0.3,
            child: ElevatedButton(
              style: ButtonStyle(
                foregroundColor: MaterialStateProperty.all<Color>(Colors.blue),
                side: MaterialStateProperty.all<BorderSide>(BorderSide(
                  color: Colors.blue,
                  width: 4,
                )),
                shape: MaterialStateProperty.all<OutlinedBorder>(
                  RoundedRectangleBorder(
                    side: BorderSide(
                      width: 0.5,
                      color: Color(0xFFB4B4B4),
                    ),
                    borderRadius: BorderRadius.circular(20),
                  ),
                ),
              ),
              onPressed: () {
                Get.offAllNamed('/home');
              },
              child: Text(
                'Go Home'.tr,
                style: TextStyle(color: Colors.white),
              ),
            ),
          )
        ],
      ),
    );
  }
}
